import { callService } from "./api";
import type { UserProfile } from "../types/entities";

export function fetchAllUsers() {
  return callService<{ users: UserProfile[] }>("adminListUsers");
}

export function deleteUser(openId: string) {
  return callService("adminDeleteUser", { openId });
}
